package com.kreateinfinity.msdi.model.authentication;

/**
 * @author 
 * This is the mapping class for rb_user_registration table
 */

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

@SuppressWarnings("serial")
@Entity
@Table(name = "usertbl")

@javax.persistence.SequenceGenerator(
		name="usertbl_seq",
		sequenceName="usertbl_seq",
		allocationSize=1

)
/*@NamedQueries(
{
@NamedQuery (name = "editUser", query = "update UserVO set userPassWord=:userPassWord, firstName=:firstName,lastName=:lastName, mobile=:mobile, phone=:phone, userEmail=:userEmail, address=:address, gender=:gender where userId=:userId")
})*/

public class User implements java.io.Serializable {


	@Id
	@GeneratedValue(strategy = GenerationType.SEQUENCE ,generator="usertbl_seq")

	@Column(name = "id")	
	private long userId; 

	/*@Column(name = "user_type")	
	private String userType;*/ 

	@Column(name = "user_name")	
	private String userName="";

	@Column(name = "user_password")	
	private String userPassWord="";	

	@Column(name = "first_name")
	private String firstName="";

	@Column(name = "last_name")
	private String lastName="";

	@Column(name = "address")
	private String address="";

	@Column(name = "user_email")
	private String userEmail="";

	@Column(name = "telephone_no")
	private String phone="";

	@Column(name = "mobile_no")
	private String mobile ="";

	@Column(name = "gender")
	private String gender ="";

	//private String id = "";

	public String getAddress() {
		return address;
	}
	 
	public String getFirstName() {
		return firstName;
	}
	public String getGender() {
		return gender;
	}
	
	public String getLastName() {
		return lastName;
	}
	public String getMobile() {
		return mobile;
	}
	public String getPhone() {
		return phone;
	}

	public String getUserEmail() {
		return userEmail;
	}
	public long getUserId() {
		return userId;
	}
	public String getUserName() {
		return userName;
	}
	public String getUserPassWord() {
		return userPassWord;
	}
	
	public void setAddress(String address) {
		this.address = address;
	}
	public void setFirstName(String firstName) {
		this.firstName = firstName;
	}
	public void setGender(String gender) {
		this.gender = gender;
	}
	
	public void setLastName(String lastName) {
		this.lastName = lastName;
	}
	public void setMobile(String mobile) {
		this.mobile = mobile;
	}
	public void setPhone(String phone) {
		this.phone = phone;
	}
	public void setUserEmail(String userEmail) {
		this.userEmail = userEmail;
	}
	public void setUserId(long userId) {
		this.userId = userId;
	}
	public void setUserName(String userName) {
		this.userName = userName;
	}

	public void setUserPassWord(String userPassWord) {
		this.userPassWord = userPassWord;
	}
	/*
	 public String getUserType() {
		return userType;
	}
	 public void setId(String id) {
		this.id = id;
	}
	public String getId() {
		return id;
	}
	  public void setUserType(String userType) {
		this.userType = userType;
	}*/

}
